# generate_images.py
from PIL import Image

colors = {
    "static/1.jpg": (76, 175, 80),
    "static/2.jpg": (33, 150, 243),
    "static/3.jpg": (255, 193, 7),
    "static/4.jpg": (244, 67, 54),
    "static/5.jpg": (200, 200, 200),
    "static/6.jpg": (100, 200, 140),
    "static/7.jpg": (200, 20, 200),
    "static/8.jpg": (10, 200, 40),    
}

for path, color in colors.items():
    img = Image.new('RGB', (300, 300), color)
    img.save(path)
    print(f"✅ 生成: {path}")